package br.com.tcc.dao;

import br.com.tcc.jpa.DataBaseManager;
import br.com.tcc.model.ResponsavelPosto;




public class ResponsavelPostoDAO {
	
	public void insert(ResponsavelPosto responsavelPosto){

		DataBaseManager.entityManager.persist(responsavelPosto);
	}
	
	public void update(ResponsavelPosto responsavelPosto){
		
		DataBaseManager.entityManager.persist(responsavelPosto);
		
	}

	public ResponsavelPosto find(int id){
		return	(ResponsavelPosto) DataBaseManager.entityManager.find(ResponsavelPosto.class, id);
		
	}
	
	public void delete(ResponsavelPosto responsavelPosto){
		DataBaseManager.entityManager.remove(responsavelPosto);
	}


}
